/**   
 * Copyright © 2018 HIT akeil. Tech Ltd. All rights reserved.
 * 
 * 功能描述：
 * @Package: com.akeil.event 
 * @author: snow   
 * @date: 2018年8月3日 下午1:23:53 
 */
package com.akeil.flash.event;

/**   
* Copyright: Copyright (c) 2018 HIT akeil
* 
* @ClassName: NotifyType.java
* @Description: 该类的功能描述
*
* @version: v1.0.0
* @author: snow
* @date: 2018年8月3日 下午1:23:53 
*
* Modification History:
* Date         Author          Version            Description
*---------------------------------------------------------*
* 2018年8月3日     snow           v1.0.0               修改原因
*/
public enum ENotifyType {
	SERIAL_INFO(1000,"串口信息"),
	TEMPERATURE_INFO(1001,"样品温度信息"),
	FLASHPOINT_INFO(1002,"闪点信息"),
	ATM_INFO(1003,"大气压强"),
	DESKTOP_INFO(1004,"底座温度"),
	COUPLE_INFO(1005,"电偶温度"),
	DEVICE_INFO(1006,"设备状态信息"),
	DELTA(1007,"温度校正数值");
	
	private int code;
	private String msg;
	
	private ENotifyType(int code,String msg){
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
    public static ENotifyType getByValue(int value) {
        for (ENotifyType code : values()) {
            if (code.getCode() == value) {
                return code;
            }
        }
        return null;
    }
	
}
